package com.situation.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


@AllArgsConstructor
@NoArgsConstructor
public enum StatusEnum {

    OK(200, "ok"),
    UNAUTHORIZED(401, "Unauthorized"),
    FORBIDDEN(403, "forbidden"),
    NOT_FOUND(404, "not found"),
    ACCOUNT(501, "token错误，请重新登入"),
    UnknownAccount(502, "账号不存在"),
    LockedAccount(503, "账号已被锁定"),

    IncorrectCredentials(504, "密码错误"),
    FAIL(500, "fail");


    private Integer code;
    private String msg;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
